find_path(LIBMemCached_INCLUDE_DIR memcached.hh PATH_SUFFIXES libmemcached)
find_library(LIBMemCached_LIBRARY memcached PATH /usr/lib)
if (LIBMemCached_INCLUDE_DIR AND LIBMemCached_LIBRARY)
  set(LIBMemCached_FOUND true)
endif (LIBMemCached_INCLUDE_DIR AND LIBMemCached_LIBRARY)
if (LIBMemCached_FOUND)
    message(STATUS "Found libmemcached: ${LIBMemCached_LIBRARY}")
else (LIBMemCached_FOUND)
    if (LIBMemCached_FIND_REQUIRED)
        message(FATAL_ERROR "Could not find memcache library")
    endif (LIBMemCached_FIND_REQUIRED)
endif (LIBMemCached_FOUND)
